import QtQuick 2.2
import Control.Class 1.0
import "../mainmenu"
Rectangle {
    z: 0.9
    border.color: "black";

    Component.onCompleted: {
        dbdata.settitleList("select Operation from DebugItems");
        for(var i=0; i< dbdata.strCount(); i++)
        {
            debugPanel.textnameList.push(dbdata.getTitle(i))
        }
        debugPanel.resetText()
    }

    InstructionPanel{
        id: dbdata
    }

    ModelPanel{
        id: debugPanel
        itemBorderColor: qsTr("green")
        rowspacing: 2;  columnspacing: 5
        rowCount: 6;    columnCount: 2
        /*itemWidth: (parent.width -10)/2;*/    itemHeight: (parent.height-20)/10


        anchors.fill: parent;
        anchors.topMargin: 10; anchors.bottomMargin: 10; anchors.leftMargin: 3; anchors.rightMargin: 3
    }

//    Grid{
//        columns: 2;
//        columnSpacing: 5; rowSpacing: 2

//        InstructItem{textname: qsTr("PP 移至 Main"); width: (parent.width- 10)/2; height: (parent.height -20)/10; textVLocate: 1; fontsize: 18; fontcolor: "black"; bordercolor: "#00ACB6"; borderwidth: 1;}
//        InstructItem{textname: qsTr("PP 移至光标"); width: (parent.width- 10)/2; height: (parent.height -20)/10; textVLocate: 1; fontsize: 18; fontcolor: "black"; bordercolor: "#00ACB6"; borderwidth: 1;}
//        InstructItem{textname: qsTr("PP 移至例行程序..."); width: (parent.width- 10)/2; height: (parent.height -20)/10; textVLocate: 1; fontsize: 18; fontcolor: "black"; bordercolor: "#00ACB6"; borderwidth: 1;}
//        InstructItem{textname: qsTr("光标移至 PP"); width: (parent.width- 10)/2; height: (parent.height -20)/10; textVLocate: 1; fontsize: 18; fontcolor: "gray"; bordercolor: "gray"; borderwidth: 1;}
//        InstructItem{textname: qsTr("光标移至 MP"); width: (parent.width- 10)/2; height: (parent.height -20)/10; textVLocate: 1; fontsize: 18; fontcolor: "gray"; bordercolor: "gray"; borderwidth: 1;}
//        InstructItem{textname: qsTr("移至位置"); width: (parent.width- 10)/2; height: (parent.height -20)/10; textVLocate: 1; fontsize: 18; fontcolor: "gray"; bordercolor: "gray"; borderwidth: 1;}
//        InstructItem{textname: qsTr("调用例行程序..."); width: (parent.width- 10)/2; height: (parent.height -20)/10; textVLocate: 1; fontsize: 18; fontcolor: "gray"; bordercolor: "gray"; borderwidth: 1;}
//        InstructItem{textname: qsTr("取消调用例行程序"); width: (parent.width- 10)/2; height: (parent.height -20)/10; textVLocate: 1; fontsize: 18; fontcolor: "gray"; bordercolor: "gray"; borderwidth: 1;}
//        InstructItem{textname: qsTr("查看值"); width: (parent.width- 10)/2; height: (parent.height -20)/10; textVLocate: 1; fontsize: 18; fontcolor: "gray"; bordercolor: "gray"; borderwidth: 1;}
//        InstructItem{textname: qsTr("检查程序"); width: (parent.width- 10)/2; height: (parent.height -20)/10; textVLocate: 1; fontsize: 18; fontcolor: "black"; bordercolor: "#00ACB6"; borderwidth: 1;}
//        InstructItem{textname: qsTr("查看系统数据"); width: (parent.width- 10)/2; height: (parent.height -20)/10; textVLocate: 1; fontsize: 18; fontcolor: "black"; bordercolor: "#00ACB6"; borderwidth: 1;}
//        InstructItem{textname: qsTr("搜索例行程序"); width: (parent.width- 10)/2; height: (parent.height -20)/10; textVLocate: 1; fontsize: 18; fontcolor: "black"; bordercolor: "#00ACB6"; borderwidth: 1;}

//        anchors{
//            top: parent.top; bottom: parent.bottom; left: parent.left; right: parent.right;
//            topMargin: 10; leftMargin: 6;
//        }
//    }
}

